Use try it out to update learner details
The following example describes how REST Services can be used to update learner data.
To update learner data:
-
Open the relevant learner record using the Learner Search and make a note of their Person Code.
-
Copy the Web service host URL institution setting (on the General (Cross System) screen).
Important.The URL of your REST Services documentation is stored in the Web service host URL setting on the General (Cross-System) screen in institution settings. -
Open a browser and paste the URL into the browser’s address bar, appending the URL with /docs (that is: http://<web service host URL>/docs).
The EBS REST Documentation page is displayed.
Services with a greyed-out padlock icon require authentication, so first, you must authorise the REST services session to use the Try It Out functionality.
The REST services states are described in the following table.
| REST icon | REST service state |
|---|---|
|
Unauthorised - authorisation is required before 'Try it out' functionality is enabled. |
|
Authorised - 'Try it out' functionality is enabled. |
-
Select the Authorize button.
The Available authorizations window is displayed.
-
Enter your username and password. Select the Authorize button.
-
Select Close .
-
Select the Authentication REST Service.
The Authentication REST service is displayed.
-
Select the Try it out button.
-
Select the Execute button.
Copy the string from between the two token values found in the Responses body section (for example: <Token>123456789ABCDEFG</Token>).
-
Select the Authorize button.
The Available authorizations window is displayed.
-
Paste the token into the Value field and select the Authorize button.
-
Select Close .
-
Browse to the People section and select the PUT/People/{personCode} REST Service to expand it.
-
Select the Try it out button.
-
Enter the personCode of the learner to be updated into The person code of the person to be updated field.
-
Substitute the relevant string value in the Edit value field for the alteration (for example: change the "Forename": "string", value to "Forename": "John",) and remove all unaltered fields, except for the opening and closing brackets (that is: {"Forename": "John",}).
-
Select the Execute button.
The response is displayed on screen:
-
200 - update successful
-
400 - there was a problem updating the learner’s record
-
404 - the learner’s record could not be found
-
-
Use the Learner Search to verify that the update was successful.